/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entidades;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;

/**
 *
 * @author Gatoper
 */
@Entity
@Inheritance(strategy= InheritanceType.JOINED)
public class Person implements Serializable {

    public Person(String name) {
        this.name = name;
    }

    public Person(String name, String lasname, String ssn, String birthday, String birthplace) {
        this.name = name;
        this.lasname = lasname;
        this.ssn = ssn;
        this.birthday = birthday;
        this.birthplace = birthplace;
    }
    @Id
    @Column(name = "name")
    private String name;
    @Column(name = "lasname")
    private String lasname;
    @Column(name = "SSN")
    private String ssn;
    @Column(name = "birthday")
    private String birthday;
    @Column(name = "birthplace")
    private String birthplace;

    public Person() {
        super();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLasname() {
        return lasname;
    }

    public void setLasname(String lasname) {
        this.lasname = lasname;
    }

    public String getSsn() {
        return ssn;
    }

    public void setSsn(String ssn) {
        this.ssn = ssn;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getBirthplace() {
        return birthplace;
    }

    public void setBirthplace(String birthplace) {
        this.birthplace = birthplace;
    }

   
}
